home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / misc / vpan100.zip / VPBOARD.H < prev    next >
C/C++ Source or Header  |  1995-01-18  |  2KB  |  57 lines

  1. //
  2. // VIRTUAL PANELS * GRAPHIC USER UNTERFACE FOR LABORATORY WORKS
  3. //
  4. //        VPBOARD.H : CLASS: Board
  5. //
  6. //                       |     Written by O.Rasizade
  7. //    declarations       |        Sept 1992
  8. //                       |
  9. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10.  
  11. #ifndef __cplusplus
  12. #error Must use C++
  13. #endif
  14.  
  15. #ifndef __VPBOARD_H
  16. #define __VPBOARD_H
  17.  
  18.  
  19.  
  20. //+++++++++++++++++++++++++++++++++++++++++++++++++
  21. //++++++++++++ CLASS   << BOARD >>  +++++++++++++++
  22. //+++++++++++++++++++++++++++++++++++++++++++++++++
  23.  
  24. //------------------------------ Class declaration  --
  25.  
  26. class Board: public plaque, public object
  27. {
  28.  protected:
  29.  
  30.   COLORS titlecolor;
  31.  
  32.  public:
  33.  
  34.  int y0p;        // y-coord where title ends
  35.  
  36.   //----- Constructor ------- All coord. and sizes in VGA pixels ----
  37.   Board(
  38.     int _x0,int _y0,// left top coord where to paint the board
  39.     objtype _type,    // may be FIXED,PERM,POPUP
  40.     char *_title,     // title
  41.     int xlength,int ylength,         // size of board
  42.                 //---------- Hereafter are defaults
  43.     void (far *_paintproc)()=procNULL,// proc created by programmer
  44.                        // to repaint board, only for PERM
  45.     int  _titlefont=0,int _titlefontsize=1,    //font and size of title
  46.     COLORS _titlecolor=RED,
  47.     plaquecolors brdcolcnfg=plaquecoldflt);  //colors of board
  48.  
  49. //---------------
  50.  
  51. virtual void  Paint(void);
  52. virtual    void  MovetoXY(int _x0,int _y0);
  53.     void  ChangeSize(int xlength,int ylength);
  54.  
  55. };//++++++++++++++ END of class Board +++++++++++++++++++
  56.  
  57. #endif // __VPBOARD_H